import hccmRequestUtil from '@/common/hccm-request-util.js'

module.exports = {
  // 登录
  byPassword: param => hccmRequestUtil.postApi('/login/byPassword', param, true),

  // 综合销量
  salesListAll: param => hccmRequestUtil.postApi('/sales/listAll', param, true),

  // 导出
  excelExport: param => hccmRequestUtil.postApi('/sales/export', param, true),

  // 本日销售量
  salesThisDayAmount: param => hccmRequestUtil.postApi('/sales/thisDayAmount', param, true),

  // 本月销售量
  salesThisMountAmount: param => hccmRequestUtil.postApi('/sales/thisMountAmount', param, true),

  // 上月月销售量
  salesLastMountAmount: param => hccmRequestUtil.postApi('/sales/lastMountAmount', param, true),

  // 本月购药人数
  salesThisMonthPatientAmount: param => hccmRequestUtil.postApi('/sales/thisMonthPatientAmount', param, true),

  // 本月购药人数
  salesNewPatientAmount: param => hccmRequestUtil.postApi('/sales/newPatientAmount', param, true),

  // 脱落患者人数
  salesTuoLuoPatientAmount: param => hccmRequestUtil.postApi('/sales/tuoLuoPatientAmount', param, true),

  // 本日销量列表
  salesThisDaySales: param => hccmRequestUtil.postApi('/sales/thisDaySales', param, true),

  // 本月销量列表
  salesThisMountSales: param => hccmRequestUtil.postApi('/sales/thisMountSales', param, true),

  // 上月销量列表
  salesLastMountSales: param => hccmRequestUtil.postApi('/sales/lastMountSales', param, true),

  // 绑定学生
  familySave: param => hccmRequestUtil.postApi('/med/family/save', param, true),

  // 获取学生列表
  studentListParent: param => hccmRequestUtil.getApi('/med/student/studentList', param, true),

  // 保存学生
  saveDto: param => hccmRequestUtil.postApi('/med/student/saveDto', param, true),

  // 根据id获取检查列表
  inspectList: param => hccmRequestUtil.getApi('/med/inspect/list', param, true),

  // 获取检查
  getReport: param => hccmRequestUtil.getApi('/med/student/getReport', param, true),

  
  //  getFourReportChild
  getFourReportChild: param => hccmRequestUtil.getApi('/med/diagnose/getFourReportChild', param, true),
}
